package com.baizhi.entity;

import java.util.Date;

public class Drug {
    private Integer id;
    private String name;//药品名
    private String spec;//规格
    private String unit;//单位
    private String productCompany;//生产企业
    private Date productDate;//生产日期
    private Date okDate;//保质期至
    private Double import_price;//进价
    private Double price;//零售价
    private Integer saleStatus;//销售状态  （0：正常销售    1：停售）
    private Integer isImport;//是否是进口(0:是   1：非进口药)
    private String description;//产品说明

    public Drug() {
    }

    public Drug(Integer id, String name, String spec, String unit, String productCompany, Date productDate, Date okDate, Double import_price, Double price, Integer saleStatus, Integer isImport, String description) {
        this.id = id;
        this.name = name;
        this.spec = spec;
        this.unit = unit;
        this.productCompany = productCompany;
        this.productDate = productDate;
        this.okDate = okDate;
        this.import_price = import_price;
        this.price = price;
        this.saleStatus = saleStatus;
        this.isImport = isImport;
        this.description = description;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getProductCompany() {
        return productCompany;
    }

    public void setProductCompany(String productCompany) {
        this.productCompany = productCompany;
    }

    public Date getProductDate() {
        return productDate;
    }

    public void setProductDate(Date productDate) {
        this.productDate = productDate;
    }

    public Date getOkDate() {
        return okDate;
    }

    public void setOkDate(Date okDate) {
        this.okDate = okDate;
    }

    public Double getImport_price() {
        return import_price;
    }

    public void setImport_price(Double import_price) {
        this.import_price = import_price;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getSaleStatus() {
        return saleStatus;
    }

    public void setSaleStatus(Integer saleStatus) {
        this.saleStatus = saleStatus;
    }

    public Integer getIsImport() {
        return isImport;
    }

    public void setIsImport(Integer isImport) {
        this.isImport = isImport;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Drug{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", spec='" + spec + '\'' +
                ", unit='" + unit + '\'' +
                ", productCompany='" + productCompany + '\'' +
                ", productDate=" + productDate +
                ", okDate=" + okDate +
                ", import_price=" + import_price +
                ", price=" + price +
                ", saleStatus=" + saleStatus +
                ", isImport=" + isImport +
                ", description='" + description + '\'' +
                '}';
    }
}
